/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lab6.Home;

/**
 *
 * @author THIEN
 */
public class Teacher {

    int id;
    String name;
    int age;

    public Teacher() {
    }

    public Teacher(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Teacher id: " + id + "\tName: " + name + "\tAge: " + age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
